import request from '@/utils/request'
// 查询陪诊员用户列表
export function listCompanion(query) {
  return request({
    url: '/companion/companion/list',
    method: 'get',
    params: query
  })
}
// 查询陪诊员用户详细
export function getCompanion(id) {
  return request({
    url: '/companion/companion/' + id,
    method: 'get'
  })
}
// 新增陪诊员用户
export function addCompanion(data) {
  return request({
    url: '/companion/companion',
    method: 'post',
    data: data
  })
}// 修改陪诊员用户
export function updateCompanion(data) {
  return request({
    url: '/companion/companion',
    method: 'put',
    data: data
  })
}
// 删除陪诊员用户
export function delCompanion(id) {
  return request({
    url: '/companion/companion/' + id,
    method: 'delete'
  })
}
